import service from "../config";

// 学习路径列表
export function fetchLearningPaths() {
    return service({
        url: "/learning/paths/",
        method: "GET"
    });
}

// 学习路径详情
export function fetchLearningPathDetail(id) {
    return service({
        url: `/learning/paths/${id}/`,
        method: "GET"
    });
}

// 今日复习任务
export function fetchTodayReviews() {
    return service({
        url: "/learning/reviews/today/",
        method: "GET"
    });
}
